Passed
Branch master (3ad5d4)
by refat
26:57
created

404.js ➔ appendInDocument   A

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
dl 0
loc 3
rs 10
1
// eslint-disable-next-line no-unused-vars
2
import layout from './_layout';
3
4
const QUOTES = [
5
  'A lot of hard work is hidden behind nice things.',
6
  'I never said to myself, \'I’m going to be the greatest.\' I just wanted to do my own thing.',
7
  'The only thing necessary for the triumph of evil is for good men to do nothing.',
8
  'I surround myself with good people who make me feel great and give me positive energy.',
9
  'I surround myself with good people who make me feel great and give me positive energy.',
10
  'What you feel inside reflects on your face. So be happy and positive all the time.',
11
  'I surround myself with good people who make me feel great and give me positive energy.',
12
  'Don’t forget to tell yourself positive things daily! You must love yourself internally to glow externally.',
13
  'What you feel inside reflects on your face. So be happy and positive all the time.',
14
  'Smile from your heart; nothing is more beautiful than a woman who is happy to be herself.',
15
  'Whatever comes in my way, I take it with smile.',
16
  'Only I can change my life. No one can do it for me.',
17
  'Optimism is the faith that leads to achievement. Nothing can be done without hope and confidence.',
18
  'The secret of getting ahead is getting started.',
19
  'Good, better, best. Never let it rest. \'Til your good is better and your better is best.',
20
  'It does not matter how slowly you go as long as you do not stop.',
21
  'It’s not about ideas. It’s about making ideas happen.',
22
  'Always deliver more than expected.',
23
  'The most courageous act is still to think for yourself. Aloud.',
24
  'Nothing will work unless you do.',
25
  'Don’t be intimidated by what you don’t know. That can be your greatest strength and ensure that you do things differently from everyone else.',
26
  'Fearlessness is like a muscle. I know from my own life that the more I exercise it, the more natural it becomes to not let my fears run me.',
27
  'One does not discover new lands without consenting to lose sight of the shore for a very long time.',
28
  'Surround yourself with only people who are going to lift you higher.',
29
  'Sweating the details is more important than anything else.',
30
  'You shouldn’t blindly accept a leader’s advice. You’ve got to question leaders on occasion.',
31
  'Your time is limited, so don’t waste it living someone else’s life.',
32
  'Never give up. Today is hard, tomorrow will be worse, but the day after tomorrow will be sunshine.',
33
  'Define success on your own terms, achieve it by your own rules, and build a life you’re proud to live.',
34
  'Someone’s sitting in the shade today because someone planted a tree a long time ago.',
35
];
36
37
const INDEX = Math.floor(Math.random() * QUOTES.length);
38
39
(function appendInDocument() {
40
  document.querySelector('.quote').innerHTML = QUOTES[INDEX];
41
}());
42